home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Atari Mega Archive 1
/
Atari Mega Archive - Volume 1.iso
/
gnu
/
gnulib
/
libsrc98.zoo
/
fputs.c
< prev
next >
Wrap
C/C++ Source or Header
|
1994-03-29
|
322b
|
23 lines
/* from Dale Schumacher's dLibs */
#include <stdio.h>
#include <stddef.h>
#include <assert.h>
int
fputs(data, fp)
register const char *data;
register FILE *fp;
{
register int n = 0;
assert((data != NULL));
while (*data)
{
if (fputc(*data++, fp) == EOF)
return (EOF);
++n;
}
return (n);
}